//
//  NetWorkTool.h
//  BabyCloud_Parent
//
//  Created by mac on 2017/11/29.
//  Copyright © 2017年 SZJ. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^success)(NSString *urlStr,NSDictionary *dic,NSString *json,NSDictionary *params);
typedef void(^fails)(NSString *urlStr,NSError *error,NSDictionary *params);
@interface NetWorkTool : NSObject

+ (void)upLoad:(NSString *)urlStr withParams:(NSDictionary *)params withImageArray:(NSArray <UIImage *> *)imageArray withNameArr:(NSArray <NSString  *> *)nameArr withSuccess:(success)success withFails:(fails)fails;

+ (void)get:(NSString *)urlStr withSuccess:(success)success withFails:(fails)fails;

+ (void)post:(NSString *)urlStr withParams:(NSDictionary *)params withSuccess:(success)success withFails:(fails)fails;

@end
